const jwt = require('koa-jwt');
const jwttoken=require('jsonwebtoken')
const {
    JWT_CONF
} = require('../utils/config')
module.exports = jwt({
    secret: JWT_CONF.JWT_PRIVATE_KEY,
    algorithms: ['HS256'],
    credentialsRequired: true,

}).unless({
    path: [
        '/',
        '/user/login',
        '/user/register'
    ]
});